From 2dc5f21f49c2bbb19823b228ba00a599d6976cc5 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Tue, 29 Mar 2005 08:05:47 +0000 Subject: [PATCH] bitkeeper revision 1.1159.258.76 (42490c5b3SVISdc-fROkhmb0BdgCvA) Use fwrite() to write variable string in xfrd, to make it 64-bit safe. Signed-off-by: Jerone Young Signed-off-by: Keir Fraser --- tools/xfrd/xen_domain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/xfrd/xen_domain.c b/tools/xfrd/xen_domain.c index 64567900b4..8b666777a7 100644 --- a/tools/xfrd/xen_domain.c +++ b/tools/xfrd/xen_domain.c @@ -177,7 +177,9 @@ static CURL *curlinit(void){ /** Curl debug function. */ int curldebug(CURL *curl, curl_infotype ty, char *buf, size_t buf_n, void *data){ - printf("%*s\n", buf_n, buf); + // printf("%*s\n", buf_n, buf); /* Does not compile correctly on non 32bit platforms */ + fwrite(data, buf_n, 1, stdout); + printf("\n"); return 0; } -- 2.30.2